// http://code.google.com/p/objx/wiki/modify

OAction("modify", {

	action: OOriginal,

	all: function(changer) {
	
		if (ODebug) {
			if (!changer) {
				OError(".modify requires a changer function as the first argument.  Remember the behaviour modifier as the second argument.  Try .select(function(){}, ONew)");
			}
		}
		
		var original = this.obj();
		this.each(function(o,i){
			original[i] = changer.apply(this, arguments);
		});
	
	}

});

OProvides("objx.modify");